package com.it235.seata.order.mapper;

import com.it235.seata.order.model.Order;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author jianjun.ren
 * @since 2021/02/16
 */
@Repository
public interface OrderMapper {

    /**
     *  private Long id;
     *
     *     private Long userId;
     *
     *     private Long productId;
     *
     *     private int count;
     *
     *     private BigDecimal money;
     *
     *     private int status;
     * @param order
     * @return
     */
    @Insert("insert into t_order(user_id,product_id,count,money,status) values (#{userId},#{productId},#{count},#{money},#{status})")
    int insert(Order order);
}
